home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1999 March
/
EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso
/
earcd
/
devel
/
vbcc-68k-src
/
machines
/
amiga68k
/
libsrc
/
math
/
math_040
/
modf.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-01-01
|
170b
|
13 lines
#include <math.h>
double modf(double x,double *p)
{
if(x<0){
*p=ceil(x);
return(*p-x);
}else{
*p=floor(x);
return(x-*p);
}
}